package com.weseal.service;


import com.weseal.form.BlacklistForm;
import com.weseal.form.UserInfoForm;
import com.weseal.query.FreedomUserQuery;
import com.weseal.query.UserInfoQuery;
import com.weseal.response.CommonResult;
import com.weseal.response.ResponseResult;
import com.weseal.vo.UserInfoVo;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/6
 */
public interface UserInfoService {

	int deleteByPrimaryKey(Long id);

	int insert(UserInfoForm form);

	/**
	 * 分页查询用户
	 *
	 * @param query
	 * @return
	 */
	ResponseResult<UserInfoVo> pageQuery(UserInfoQuery query);

	/**
	 * 查询时间段内无空闲人
	 *
	 * @param query
	 * @return
	 */
	ResponseResult<UserInfoVo> pageQueryRemoveUserByTime(FreedomUserQuery query);
	
	UserInfoVo select(Long userId);
	
	void update(UserInfoForm form);
	
	void addBlack(BlacklistForm form);

	void removeBlack(BlacklistForm form);

	void delete(BlacklistForm form);
}
